package com.bawei.admin.feign;

import com.bawei.common.utils.R;
import com.bawei.common.vo.DoctorVo;
import com.bawei.common.vo.GradeMarkVo;
import com.bawei.common.vo.HospitalDoctorVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("doctor")
public interface DoctorFeignService {

    @PostMapping("doctor/hospitaldoctor/save")
    public R save(@RequestBody DoctorVo hospitalDoctor);


    @GetMapping("doctor/hospitaldoctor/listDoctors")
    public List<HospitalDoctorVo> listDoctors();

    @GetMapping("doctor/grademark/listGraedMark")
    public List<GradeMarkVo> listGraedMark();

    @GetMapping("doctor/hospitaldoctor/updateStatus/{doctorId}/{status}")
    public String updateStatus(@PathVariable("doctorId") Integer doctorId, @PathVariable("status") Integer status);


}
